/***************************************************************
 * Name:      wxLogTrace.h
 * Purpose:   Defines Application Frame
 * Author:    walnutcy (walnutcy@gmail.com)
 * Created:   2012-09-14
 * Copyright: walnutcy (weibo.com/walnutcy)
 * License:
 **************************************************************/
#ifndef WXLOGTRACE_H
#define WXLOGTRACE_H

#include <wx/file.h>
#include "stdef.h"

class wxLogTrace
{
    public:
        wxLogTrace();
        virtual ~wxLogTrace();


        int  createLogFile(wxString fileName, u8 isThread=0);
        void log(const wxChar* fmt, ...);
        void close(void);

    protected:
    private:
        wxFile   file;
        char     flg;
        char     flgThread;
        wxString filePath;
};

#endif // WXLOGTRACE_H
